<?php
class Application_Model_DbTable_Personne extends Zend_Db_Table_Abstract{
	protected $_name = 'personne';
	protected $_primary = 'id';
	
	public function getSalt($login){
		$select = $this->select();
		
		$select ->from(array('p'=>$this->_name),'salt')
				->where('p.login = ?',$login);
				
		return $select->query()->fetch(PDO::FETCH_OBJ);
	}
}